<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Plugins\Sms\SendInfo;

class SendUserInfo implements ShouldQueue
{
    use InteractsWithQueue, Queueable, SerializesModels;

    protected $userInfo;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($info)
    {
        $this->userInfo = $info;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        (new SendInfo())->Send(4, $this->userInfo, $this->userInfo['mobile'], null, null);
    }
}
